package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjCodeInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 编码信息表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-08-23
 */
@Repository
public interface ZjCodeInfoMapper extends BaseMapper<ZjCodeInfo> {

    /**
     * 根据ID获取信息
     * @param id 编码ID
     * @return
     */
    ZjCodeInfo getById(Long id);

    /**
     * 根据编码ID已登记的编码
     * @param ids 编码ID
     * @return
     */
    List<String> getRegistCodeByIds(@Param("ids") List<Long> ids);

    /**
     * 根据编码ID获取登记时间
     * @param ids 编码ID
     * @return
     */
    List<ZjCodeInfo> getRegistTimeByIds(@Param("ids") List<Long> ids);
}
